package com.hzx.clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Date;

@FeignClient(value = "seckill-common",fallbackFactory = TimeClientServiceFallbackFactory.class)
public interface TimeClient {

    @GetMapping("/timeNow")
    Date getTime();
}
